import request from '/@/api/request'

/** 获取当前机构角色 */
export const requestGetCompanyRoleList = (data: GetCompanyRoleListTypes.IRequest) => {
  return request.post<IPaginationResponse<GetCompanyRoleListTypes.IResponse[]>>('/business/company/config/getCompanyRoleList', data)
}
/** 获取当前机构身份 */
export const requestGetCompanyIdentityList = (data: GetCompanyIdentityListTypes.IRequest) => {
  return request.post<IBaseResponse<GetCompanyIdentityListTypes.IResponse[]>>('/business/company/config/getCompanyIdentityList', data)
}
/** 获取当前机构模版 */
export const requestGetCompanyIdentityTemplateList = (data: GetCompanyIdentityTemplateListTypes.IRequest) => {
  return request.post<IBaseResponse<GetCompanyIdentityTemplateListTypes.IResponse[]>>('/business/company/config/getCompanyIdentityTemplateList', data)
}
/** 机构角色保存 */
export const requestSaveRoleConfig = (data: SaveRoleConfigTypes.IRequest) => {
  return request.post<IBaseResponse<SaveRoleConfigTypes.IResponse>>('/business/company/config/saveRoleConfig', data)
}
/** 机构模板保存 */
export const requestSaveTemplateConfig = (data: SaveTemplateConfigTypes.IRequest) => {
  return request.post<IBaseResponse<SaveTemplateConfigTypes.IResponse>>('/business/company/config/saveTemplateConfig', data)
}
/** 机构身份保存 */
export const requestSaveIdentityConfig = (data: SaveIdentityConfigTypes.IRequest) => {
  return request.post<IBaseResponse<SaveIdentityConfigTypes.IResponse>>('/business/company/config/saveIdentityConfig', data)
}
